#include<stdio.h> 
#include<stdlib.h>
char *strcut(char *p,char *n)
{
	char *str;
	int length1=0,length2=0;
	while(p[length1++]!='\0');
	while(n[length2++]!='\0');
	str=(char *)malloc((length1+length2+1)*sizeof(char));
	for(int i=0;i<length1;i++)
	{
		str[i]=p[i];
	}
	for(int i=0;i<length2;i++)
	{
		str[length1-1+i]=n[i];
	}
	str[length1+length2]='\0';
	return str;
}
int main()
{
	char *p;
	char *n;
	n=(char *)malloc(sizeof(n)/sizeof(char));
	char *str;
	str=(char *)malloc(sizeof(str)/sizeof(char));
	p=(char *)malloc(sizeof(p)/sizeof(char));
	scanf("%s",p);
	scanf("%s",n);
	str=strcut(p,n);
	puts(str);
}


